package gui.win.veme;

import gui.Segl1;
import gui.utils.Borders;
import gui.utils.FilePicker;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.FlowLayout;
import javax.swing.BorderFactory;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTextArea;

/*Author: John Archer, Contact: john.archer.jpa@gmail.com*/
public class Veme extends JFrame{
    private JTextArea lab;
    private FilePicker fcb;
    public Veme(Segl1 SegL1){
        super();
        this.setLocation(SegL1.getLocationOnScreen().x + 50, SegL1.getLocationOnScreen().y + 50);
        this.setLayout(new FlowLayout());
        this.setSize(new Dimension(400, 140));
        JPanel p = new JPanel();
        p.setBorder(Borders.getTitledBorder(Borders.STANDARD_TITLED_BORDER, "VEME TABLE"));
        p.setLayout(new BorderLayout());
        JPanel p1 = new JPanel(new BorderLayout());
        p1.setBorder(BorderFactory.createEmptyBorder(0, 6, 0, 6));
        lab = new JTextArea();
        lab.setFont(Borders.getFont(Borders.GUIFONT));
        lab.setText("Save table for VEME Practical.\n"
                + "The table contains the counts of the items indicated by the column\n headers on a per site bases. (See practical handout.)");
        p1.add(lab, BorderLayout.CENTER);
        p.add(p1, BorderLayout.CENTER);
        this.add(p, BorderLayout.CENTER);
        this.add(new Buttons(this, SegL1), BorderLayout.SOUTH);
        this.setVisible(true);
        this.setAlwaysOnTop(true);
    }
    public String getPath(){return fcb.getPath();}
    public void closeFrame(){this.dispose();}
}


